package Couistot;

public class Test {

	public static void main(String[] args) {
	
	Menu m=new Menu ("Menu du jour","",null);
	m=(Menu)Serialisable.charger(m);

	Gerant pelletier=new Gerant("Pelletier","Nicolas",21,"","",new Tache(),0,0,new Logins("Nicolas","19930908","chocobo"));
	Serveur gaspard=new Serveur("Gaspard","Jerome",21,"","",new Tache(),0,0,new Logins("Jerome","123456789","chocobo"));
	
	/*Serveur gaspard=new Serveur("Gaspard",new Logins());
	Gerant pelletier=new Gerant("Pelletier",new Logins());*/
	
	Serialisable.sauvegarde(pelletier);
	Serialisable.sauvegarde(gaspard);
	
	/*pelletier=(Gerant)Serialisable.charger(pelletier);
	gaspard=(Serveur)Serialisable.charger(gaspard);*/

	
	Serveur[] tabLogins=new Serveur[2];
	tabLogins[0]=pelletier;
	tabLogins[1]=gaspard;
	
	
	Logins.authentifier(tabLogins, m);

	
	}

}
